public void Init(TD_InputHandler _inp)
 {
     inp        = _inp;
     cam        = GetComponentInChildren <Camera>();
     mTransform = this.transform;
     states     = inp.states;
     target     = states.getTransform();
     playerId   = inp.playerID;
 }
Example #2
0
 public void INITIALIZING(TD_StateManager state)
 {
     ammonation                 = new Ammonation();
     ammonation.bullet          = weaponBullet;
     currentBullet              = weaponBullet;
     statemanager               = state;
     statemanager.BULLETSPAWNER = this;
     statemanager.status.getCurrentweapon.bullet = weaponBullet;
     direction  = transform.forward;
     cameraMain = statemanager.FollowCamera;
     isPlayer   = true;
     onShot     = NormalShot;
     playerId   = state.playerId;
 }