// Use this for initialization
 void Start()
 {
     x = 0;
     y = 0;
     transform.position = new Vector3(x, y, 0);
     Overlay(new Vector3Int(x, y, 0));
     rigidbody = GetComponent <Rigidbody2D>();
     ghost     = GetComponent <Ghosting>();
 }
Esempio n. 2
0
 private void DefineGhostLevel()
 {
     if (sphere.ghost)
     {
         if (spherePair.ghost)
         {
             ghostStatus = Ghosting.total;
         }
         else
         {
             ghostStatus = Ghosting.partial;
         }
     }
     else if (spherePair.ghost)
     {
         ghostStatus = Ghosting.partial;
     }
     else
     {
         ghostStatus = Ghosting.none;
     }
 }