Esempio n. 1
0
    private void Start()
    {
        cm = GameObject.FindGameObjectWithTag("CM").GetComponent <CheckMaster>();

        //If no Boss, boss is null
        if (GameObject.FindGameObjectsWithTag("Boss").Length != 0)
        {
            boss = GameObject.FindGameObjectWithTag("Boss").GetComponent <Boss_Chase>();
        }

        PlayerRB        = GetComponent <Rigidbody2D>();
        playerHealth    = 3;
        PlayerTransform = GetComponent <Transform>();
    }
 void Start()
 {
     cm = GameObject.FindGameObjectWithTag("CM").GetComponent <CheckMaster>();
 }
 private void Awake()
 {
     cm = GameObject.FindGameObjectWithTag("CM").GetComponent <CheckMaster>();
 }