protected override void HandleCollected(Collider collider) { MadBomberData madBomberData = collider.GetComponentInParent <MadBomberData>(); madBomberData.BombAmount++; Destroy(gameObject.transform.root.gameObject); }
protected override void HandleCollected(Collider collider) { MadBomberData madBomberData = collider.GetComponentInParent <MadBomberData>(); madBomberData.ExplosionSizeFactor++; Destroy(gameObject.transform.parent.gameObject); }
protected override void HandleCollected(Collider collider) { MadBomberData madBomberData = collider.GetComponentInParent <MadBomberData>(); Bomb actualBomb = madBomberData.mBombSlots[1].GetComponent <Bomb>(); LevelData levelData = GameObject.FindGameObjectWithTag(TagName.LEVEL_MANAGER).GetComponent <LevelData>(); GameObject newBombGameObject = levelData.GetBombGameObject(actualBomb.mBombType, mExplosionType); madBomberData.mBombSlots[1] = newBombGameObject; Destroy(gameObject.transform.root.gameObject); }
protected void HandleAttributes() { mPlayerManagers = new PlayerManager[LevelChangeManager.mPlayerAmount]; mMadBomberDatas = new MadBomberData[LevelChangeManager.mPlayerAmount]; mPlayerHUDRects = new Rect[LevelChangeManager.mPlayerAmount]; }