void Start() { //instantiate reference classes //healthManager = FindObjectOfType<HealthManager> (); elderMonk = FindObjectOfType <ElderMonk> (); hiddenText = FindObjectOfType <HiddenText> (); playerController = FindObjectOfType <PlayerController> (); //set starting values roundEnd = false; roundResetTimeCounter = roundResetTime; }
public float roundResetTimeCounter; // time variable between rounds void Start () { //instantiate reference classes healthManager = FindObjectOfType<HealthManager> (); elderMonk = FindObjectOfType<ElderMonk> (); hiddenText = FindObjectOfType<HiddenText> (); playerController = FindObjectOfType<PlayerController> (); //find animators anim01 = Player01.GetComponent<Animator> (); anim02 = Player02.GetComponent<Animator> (); //player02 rigidbody body02 = Player02.GetComponent<Rigidbody2D> (); //set starting values roundEnd = false; roundResetTimeCounter = roundResetTime; }
void Start() { moo01 = elderMonk01.GetComponent <ElderMonk>(); // get script attached to elder01 moo02 = elderMonk02.GetComponent <ElderMonk>(); // get script attached to elder02 }
private ElderMonk moo; // elder script void Start () { baseMask = LayerMask.NameToLayer("default"); // find default layermask moo = myMonk.GetComponent<ElderMonk>(); // find elder script }
private bool monkCheck; // monk is in collision area void Start() { baseMask = LayerMask.NameToLayer("default"); // find default layermask moo = myMonk.GetComponent <ElderMonk>(); // find elder script monkCheck = false; }
void Start() { moo01 = elderMonk01.GetComponent<ElderMonk>(); // get script attached to elder01 moo02 = elderMonk02.GetComponent<ElderMonk>(); // get script attached to elder02 }