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; } } }
void Start() { zone = transform.parent.parent.GetComponentInChildren <FoxZone>(); glow = GetComponent <CustomGlowColor>(); }