// Use this for initialization void Start() { monster = FoodMonsterImpl.GetInstance(); monster.setHitbox(hitbox); monster.setVisible(true); monster.reset(); playTime = 0; }
public static FoodMonster GetInstance() { if (INSTANCE == null) { INSTANCE = new FoodMonsterImpl(); } return(INSTANCE); }
// Use this for initialization void Start() { monster = FoodMonsterImpl.GetInstance(); Level nextLevel = currentLevel.getNextLevel(); CURRENT = currentLevel; while (nextLevel != currentLevel) { nextLevel.Hide(); nextLevel = nextLevel.getNextLevel(); } currentLevel.Show(); }
// Use this for initialization void Start() { monster = FoodMonsterImpl.GetInstance(); velocity = getDirectionVector(); killed = false; }