示例#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;
    }
示例#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;
	}
示例#3
0
文件: Wall.cs 项目: Weakling/Monks2
 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
    }
示例#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;
    }
示例#6
0
 void Start()
 {
     moo01 = elderMonk01.GetComponent<ElderMonk>(); // get script attached to elder01
     moo02 = elderMonk02.GetComponent<ElderMonk>(); // get script attached to elder02
 }