C# 상속 및 접근 제한자

ParentClass.cs

using UnityEngine; 
using System.Collections; 
 
public class ParentClass : MonoBehaviour { 
 
    public int pubVar; 
    private int priVar; 
    protected int proVar; 
 
    public void PubFunction() 
    { 
        print("I am public"); 
    } 
 
    private void PriFunction() 
    { 
        print("I am private"); 
    } 
 
    protected void ProFunction() 
    { 
        print("I am protected"); 
    } 
} 

ChildClass.cs

using UnityEngine; 
using System.Collections; 
 
public class ChildClass : ParentClass { 
 
    void Start() 
    { 
        PubFunction(); 
 
        PriFunction(); //오류 발생!!! 
 
        ProFunction(); 
    } 
 
}