Beispiel #1
0
	void OnTriggerEnter2D(Collider2D other) {
		if (other.CompareTag ("Player") || other.CompareTag ("Clone")) {
			presentMovement = other.GetComponent<GridMovement> ();

			presentMovement.IncrementDestinationByCurrentDirection ();
		}
	}
Beispiel #2
0
    void OnTriggerEnter2D(Collider2D other)
    {
        if (other.CompareTag("Player") || other.CompareTag("Clone"))
        {
            presentMovement = other.GetComponent <GridMovement> ();

            presentMovement.IncrementDestinationByCurrentDirection();
        }
    }