Beispiel #1
0
//
	void OnTriggerEnter(Collider collider)
	{
		 if (collider.gameObject.tag == "EWall") 
			isBlocked = BlockPlayerMovement.BlockRight;
			else if (collider.gameObject.tag == "WWall")
			isBlocked = BlockPlayerMovement.BlockLeft;
	}
Beispiel #2
0
 void OnTriggerExit(Collider collider)
 {
     if (collider.gameObject.tag == "EWall" || collider.gameObject.tag == "WWall")
     {
         isBlocked = BlockPlayerMovement.NoBlock;
     }
 }
Beispiel #3
0
//
    void OnTriggerEnter(Collider collider)
    {
        if (collider.gameObject.tag == "EWall")
        {
            isBlocked = BlockPlayerMovement.BlockRight;
        }
        else if (collider.gameObject.tag == "WWall")
        {
            isBlocked = BlockPlayerMovement.BlockLeft;
        }
    }
Beispiel #4
0
	void OnTriggerExit (Collider collider)
	{
		if (collider.gameObject.tag == "EWall" || collider.gameObject.tag == "WWall")
			isBlocked = BlockPlayerMovement.NoBlock;
	}
Beispiel #5
0
	void Start()
	{
		isBlocked = BlockPlayerMovement.NoBlock;
	}
Beispiel #6
0
 void Start()
 {
     isBlocked = BlockPlayerMovement.NoBlock;
 }