示例#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>();
 }