Example #1
0
    void Start()
    {
        //instantiate reference classes
        //healthManager = FindObjectOfType<HealthManager> ();
        elderMonk        = FindObjectOfType <ElderMonk> ();
        hiddenText       = FindObjectOfType <HiddenText> ();
        playerController = FindObjectOfType <PlayerController> ();

        //set starting values
        roundEnd = false;
        roundResetTimeCounter = roundResetTime;
    }
Example #2
0
	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;
	}
Example #3
0
 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
    }
Example #5
0
    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;
    }
Example #6
0
 void Start()
 {
     moo01 = elderMonk01.GetComponent<ElderMonk>(); // get script attached to elder01
     moo02 = elderMonk02.GetComponent<ElderMonk>(); // get script attached to elder02
 }