Example #1
0
 void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.layer == 8)
     {
         type      = Tile.state.full;
         enemyType = col.gameObject.GetComponent <Character> ().charType;
     }
 }
Example #2
0
 void OnCollisionExit(Collision col)
 {
     type      = Tile.state.empty;
     enemyType = Character.type.None;
 }