// Use this for initialization void Start() { Foot = GetComponentInChildren <WarriorFoot>(); anim = GetComponentInChildren <Animator>(); if (SceneManager.GetActiveScene().buildIndex == 2) { GameObject.Instantiate(note1, new Vector3(100, 0), Quaternion.identity); } }
// Use this for initialization void Start() { Foot = GetComponentInChildren <WarriorFoot>(); anim = GetComponentInChildren <Animator>(); }