void Awake() { _cameraController = CameraController.instance; _personageController = PersonageController.instance; _soundController = SoundController.instance; _.On(Triggers.MixStrips, (a, b) => { Shake(); }); }
void Awake() { _gameState = GameStateController.instance; _characterController = PersonageController.instance; _stripController = StripController.instance; _inputController = InputController.instance; }
private void SetAnimations() { _position = Vector3.up; _position.Duration = 0.1f; _personageController = PersonageController.instance; Animation animat = _personageController.sTreeps.animation; string personageId = _personageType + ""; _animationHorizontal = new AnimationState[2]; _animationHorizontal[0] = SetAnimationConfig(animat[personageId + "Left"], 10); _animationHorizontal[1] = SetAnimationConfig(animat[personageId + "Right"], 10); _animationVertical = new AnimationState[2]; _animationVertical[0] = SetAnimationConfig(animat[personageId + "Down"], 11); _animationVertical[1] = SetAnimationConfig(animat[personageId + "Up"], 11); }