Exemplo n.º 1
0
 public ElectricState(Player player, StateMachine <Player> fsm, ElectricNavpoint entry) : base(player, fsm)
 {
     previousNode = entry;
     nextNode     = entry.getFirstNavPoint();
     selfBody     = player.GetComponent <Rigidbody>();
     selfCollider = Owner.GetComponentInChildren <Collider>();
 }
Exemplo n.º 2
0
    public ElectricState(Player player, StateMachine <Player> fsm, ElectricNavpoint entry) : base(player, fsm)
    {
        previousNode = entry;
        nextNode     = entry.getFirstNavPoint();
        selfBody     = player.GetComponent <Rigidbody>();

        transparentObj = GameObject.FindObjectsOfType <TurnTransparent>();

        entry.Trigger();
    }