Ejemplo n.º 1
0
 protected override void OnAwake(PlayerActor player)
 {
     player.Animation.RefsActAnimInfo = true;
     player.ActivateTransfer();
     if (player.HandsHolder.EnabledHolding)
     {
         player.HandsHolder.EnabledHolding = false;
         player.HandsHolder.EnabledHolding = true;
     }
     player.SetActiveOnEquipedItem(true);
     player.ResetCoolTime();
     if (player.CameraControl.Mode == CameraMode.ActionNotMove || player.CameraControl.Mode == CameraMode.ActionFreeLook)
     {
         player.CameraControl.Mode = CameraMode.Normal;
         player.CameraControl.RecoverShotType();
     }
     if (!Singleton <Manager.Map> .IsInstance())
     {
         return;
     }
     Singleton <Manager.Map> .Instance.CheckTutorialState(player);
 }
Ejemplo n.º 2
0
        protected override void OnAwake(PlayerActor player)
        {
            this._prevAcceptionState = MapUIContainer.CommandLabel.Acception;
            if (this._prevAcceptionState != CommandLabel.AcceptionState.None)
            {
                MapUIContainer.SetCommandLabelAcception(CommandLabel.AcceptionState.None);
            }
            player.Animation.RefsActAnimInfo = true;
            player.ActivateTransfer();
            player.SetActiveOnEquipedItem(true);
            player.ResetCoolTime();
            if (player.CameraControl.Mode == CameraMode.ActionNotMove || player.CameraControl.Mode == CameraMode.ActionFreeLook)
            {
                player.CameraControl.Mode = CameraMode.Normal;
                player.CameraControl.RecoverShotType();
            }
            this._prevAvoidancePriority = player.NavMeshAgent.get_avoidancePriority();
            player.NavMeshAgent.set_avoidancePriority(99);
            Vector3 destination = this.DesiredPosition(player.Partner);

            this.SetDestination(player, destination);
            player.Partner.NavMeshAgent.set_obstacleAvoidanceType((ObstacleAvoidanceType)0);
        }