Beispiel #1
0
    void Start()
    {
        //Initialize Position to 0,0
        _currentHorizontalIndex = 0;
        _currentVerticalIndex   = 0;

        // keep a reference to level spacing data
        _tileGridData = LevelGenerator._levelGeneratorInstance.GetTileGridData();
    }
    void Start()
    {
        // keep a reference to level spacing data
        _tileGridData = LevelGenerator._levelGeneratorInstance.GetTileGridData();

        //Enemy Robots Default to Facing Left
        _isFacingRight = !_isFacingRight;

        _robotEnemyMaterialHandler = GetComponent <RobotEnemyMaterialHandler> ();

        _playerRobotController = GameObject.Find("PlayerRobot").GetComponent <PlayerRobotController>();
    }