Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     shooter           = GetComponentInChildren <Shooter>();
     health            = GetComponent <Health>();
     eyesCamera        = GetComponentInChildren <Camera>();
     ipID              = Network.player.ipAddress.ToString();
     notifictaionLabel = Text.FindObjectOfType <NotificationLabel>();
     scoreBoard        = Text.FindObjectOfType <Score>();
     bulletsManager    = BulletsManager.FindObjectOfType <BulletsManager>();
     bulletsParent     = GameObject.Find("BulletsParent");
     if (!bulletsParent)
     {
         bulletsParent = new GameObject("BulletsParent");
     }
     //bodyColor = myColorManager.ChooseRandomColor();
     //gunColor = myColorManager.ChooseRandomColor();
     CmdChangeColor(ipID);
     //CmdChangeColor(ipID, bodyColor, gunColor);
 }