Ejemplo n.º 1
0
    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;
        }
    }
Ejemplo n.º 2
0
 void Awake()
 {
     inst          = this;
     player_tr     = playerp_tr;
     player_energy = 100;
     ScoreHud.inst.SetValue(player_score);
     GlobalProg = GameProg.None;
 }
Ejemplo n.º 3
0
 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);
 }