Beispiel #1
0
 private void CheckAndGetPencilCase(Collider2D coll)
 {
     if (coll.CompareTag("Item_PencilCase"))
     {
         IncreaseEraserSpaceCount();
         isPencilCaseEquipped = true;
         ItemManagement.GetInstance().SetIsPlayerPencilCaseEquipped(true);
     }
 }
Beispiel #2
0
    //Initialize Method of this class
    private void Init()
    {
        prefab_walls      = Resources.Load("Prefabs/Walls") as GameObject;
        prefab_background = Resources.Load("Prefabs/Background") as GameObject;

        currentState     = GameState.INIT;
        previousState    = GameState.NULL;
        stageManagement  = StageManagement.GetInstance();
        playerManagement = PlayerManagement.GetInstance();
        enemyManagement  = EnemyManagement.GetInstance();
        uiManagment      = UIManagement.GetInstance();
        itemManagement   = ItemManagement.GetInstance();
        scoreManagement  = ScoreManagement.GetInstance();
        soundManagement  = SoundManagement.GetInstance();
        StartCoroutine(CheckState());
    }