void Update() { switch (gameProg) { case GameProg.Setup: if (!hasStarted) { myCamMove.camLock = true; myTileSetup.SetTilesAndStats(); hasStarted = true; } CollisionAmountChecker background = GameObject.FindGameObjectWithTag("Background").GetComponent <CollisionAmountChecker>(); //Debug.Log(background.mountOfCollisions); if (background.mountOfCollisions > 600) { myCamMove.camLock = false; gameProg = GameProg.Gameplay; } break; case GameProg.Gameplay: break; case GameProg.Endgame: break; default: break; } }
void Awake() { inst = this; player_tr = playerp_tr; player_energy = 100; ScoreHud.inst.SetValue(player_score); GlobalProg = GameProg.None; }
public override PlayerAction GetSkill(Chara source, List <Chara> allChara) { skill = new GameProg(); skill.source = source; skill.level = skillLevel; skill.needTarget = true; skill.mpCost = mpCost + 2 * skillLevel; return(skill); }