Exemple #1
0
 void Start()
 {
     if (isServer)
     {
         FoxZone fz = transform.parent.GetComponentInChildren <FoxZone>();
         if (myType == foxType.fox)
         {
             fz.fox = this;
         }
         if (myType == foxType.hen)
         {
             fz.hen = this;
         }
         if (myType == foxType.grain)
         {
             fz.grain = this;
         }
     }
 }
Exemple #2
0
 void Start()
 {
     zone = transform.parent.parent.GetComponentInChildren <FoxZone>();
     glow = GetComponent <CustomGlowColor>();
 }