예제 #1
0
 void Start()
 {
     fxManager = controlledMinion.GetComponentInChildren <FXManager>();
     playerRig = controlledMinion.GetComponent <Rigidbody>();
     currentCameraPositionOffset = new Vector3(0, 16.93f, -7.85f);
     controlledMinion.GetComponentInChildren <Image>().enabled = true;
     currentCameraCamera = currentCamera.GetComponentInChildren <Camera>().gameObject.transform;
     squadManager        = FindObjectOfType <GameplayManager>().squadManager;
 }
예제 #2
0
 public void PosessMinion(MinionControll minion)
 {
     if (minion != null)
     {
         if (manager)
         {
             manager.SetScreenShake(true, 2, 0.8f, 0.05f);
         }
         controlledMinion = minion;
         fxManager        = minion.GetComponent <FXManager>();
         playerRig        = minion.GetComponent <Rigidbody>();
         controlledMinion.GetComponent <MinionControll>().GetPatrolAI().Deactivate();
         minion.GetComponentInChildren <Image>().enabled = true;
     }
 }