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; }
void Start() { mgrGame = GameObject.FindGameObjectWithTag("GameManager").GetComponent <MgrGame>(); }
// Use this for initialization protected virtual void Start() { mgrGame = transform.root.GetComponentInParent <MgrGame>(); }