Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        //Get a component reference to the player's animator component
        animator = GetComponent <Animator>();
        //Get a component reference to the gameobject's gameManger component
        boardManager     = GameObject.Find("GameManager").GetComponent <BoardManager>();
        currentPosition  = new Position(transform.position);
        nextStepPosition = new Position(transform.position);
        targetPosition   = new Position(transform.position);
        // Substribe to notifications from the monster.
        NotificationSystem.subscribe(this);
        startTime         = Time.time;
        monsterMoveEvents = new List <MonsterMoveEvent> ();

        Debug.Log("Player start position: " + currentPosition);
    }