Ejemplo n.º 1
0
    void Start()
    {
        if (!animator)
        {
            animator = GetComponentInChildren <Animator>();
        }

        currentTilesToMove = tilesToMove;

        movement = new CellMovement(inputDelay, clampAt);
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        if (!animator)
        {
            animator = GetComponentInChildren <Animator>();
        }

        if (!body)
        {
            body = GetComponent <Rigidbody2D>();
        }

        movement = new CellMovement(inputDelay);
    }
Ejemplo n.º 3
0
 public CharacterActions(Character character)
 {
     _character    = character;
     _cellMovement = new CellMovement(_character.Components.RigitBody, _character.Components.RealPosition, _character.Stats.Speed);
 }