Esempio n. 1
0
    public override void UpdateAction()
    {
        base.UpdateAction();

        if (NodeUtil.StateActionMacro(Owner))
        {
            return;
        }

        if (!EntityUtil.IsActivateAbility(Owner, CharacterAbilityType.E_GiveHold))
        {
            Owner.CurrentAction = WoodTotemIdleAction.GetInstance();
        }
    }
Esempio n. 2
0
    public void CalculateStun(Vector3 position)
    {
        isFinish = true;
        if ((Player.CurrentPlayer.transform.position - position).magnitude < 1.2 * Isometric.IsometricTileSize.x)
        {
            Player.CurrentPlayer.AddState(new CharacterState(CharacterStateType.E_Hold, Player.CurrentPlayer, 1f));
            Player.CurrentPlayer.AddState(new CharacterHitState(Player.CurrentPlayer, 20f, 0.1f));
        }

        IsoParticle.CreateParticle("ExplosionHighlight", position, 0f);
        IsoParticle.CreateParticle("WoodHold", position, 0f);

        Owner.CurrentAction = WoodTotemIdleAction.GetInstance();
    }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     CurrentAction = WoodTotemIdleAction.GetInstance();
 }