예제 #1
0
    protected override void Start()
    {
        base.Start();

        mgrGame  = GameObject.FindGameObjectWithTag("GameManager").GetComponent <MgrGame>();
        mgrScene = GameObject.FindGameObjectWithTag("GameManager").transform.Find("SceneManager").GetComponent <MgrScene>();


        hitpoint = originalHitPoint;
        attack   = 10;
    }
예제 #2
0
 void Start()
 {
     mgrGame = GameObject.FindGameObjectWithTag("GameManager").GetComponent <MgrGame>();
 }
예제 #3
0
 // Use this for initialization
 protected virtual void Start()
 {
     mgrGame = transform.root.GetComponentInParent <MgrGame>();
 }