Пример #1
0
 public AimPlayerState(
     FirstPersonMode player
     )
 {
     this.player = player;
     ammoStorage = player.GetComponent <AmmoStorageMonoBehaviour>();
 }
Пример #2
0
        public WalkPlayerState(FirstPersonMode controller)
        {
            this.controller = controller;

            // TODO: Passar essa instanciação do timer para um factory do DI
            UpdateWalkingStepClip();
            walkStepTimer = (Timer) new Timer(0.4f, UpdateWalkingStepClip).Loop();
        }
 public IdlePlayerState(FirstPersonMode controller)
 {
     this.controller = controller;
 }