Exemplo n.º 1
0
    public void Start()
    {
        playerMovement = Camera.main.GetComponent<PlayerMovement>();
        CBS = Camera.main.GetComponent<PlayerMovement>().CBS;
        player = playerMovement.player;
        grid = playerMovement.GetFloor();
        xSize = grid.xSize;
        zSize = grid.zSize;
        nodeMap = grid.nodeMap;
        map = grid.map;

        StateMachine("idle");
    }
Exemplo n.º 2
0
    public void Start()
    {
        playerMovement = Camera.main.GetComponent<PlayerMovement>();
        player = playerMovement.player;
        grid = playerMovement.GetFloor();
        xSize = grid.xSize;
        zSize = grid.zSize;
        nodeMap = grid.nodeMap;
        map = grid.map;
        goToPlayer = Move(false);
        idle = Move(true);

        StartCoroutine(idle);
    }