public Ending() { isEndFlag = false; renderer = Renderer.Instance; flashing = new Flashing(1.0f, 0f, 1f); sound = GameDevice.Instance().GetSound(); }
public GameOver() { isEndFlag = false; flashing = new Flashing(1.0f, 0.2f, 1f); gameOverFlash = new Flashing(1.0f, 0f, 2.5f, false); sound = GameDevice.Instance().GetSound(); }
public Title() { isEndFlag = false; renderer = Renderer.Instance; flashing = new Flashing(1.0f, 0f, 0.66f); sound = GameDevice.Instance().GetSound(); spawnEnemy = 4; }
public override void Start() { base.Start(); m_playerController = GetComponent <PlayerController>(); m_playerController.m_player = this; flashing = GetComponent <Flashing>(); }
private void UIFinder() { m_btn_back_Image = FindUI <Image>(transform, "btn_back"); m_btn_back_Button = FindUI <Button>(transform, "btn_back"); m_btn_back_Flashing = FindUI <Flashing>(transform, "btn_back"); m_btn_exit_Image = FindUI <Image>(transform, "btn_exit"); m_btn_exit_Button = FindUI <Button>(transform, "btn_exit"); m_go_CGSceneItems = FindUI <RectTransform>(transform, "go_CGSceneItems"); m_model = new CommonCGSceneModel(); }
public Menu() { isEndFlag = false; checkMoveScene = true; maxFishEnemy = 5; checkSelectvalue = 0; maxSelectValue = 100; notSelectAlpha = 0.2f; defaultDrawPos = new Vector2(0, 300); difficultySpace = new Vector2(0, 100); player = new Player(defaultDrawPos); flashing = new Flashing(1.0f, 0.4f, 1f); sound = GameDevice.Instance().GetSound(); }
void Start() { movement = GameObject.FindGameObjectWithTag("Player").GetComponent<Movement> (); flashing = GameObject.FindGameObjectWithTag("Flashing").GetComponent<Flashing> (); shaking = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraShake> (); rotation = GameObject.FindGameObjectWithTag("Rotation").GetComponent<Rotation> (); statusText.GetComponent<Text> ().text = ""; level = 0; cookieTotal = 0; cookieAmount = 0; clip1 = GetComponents<AudioSource> ()[0].clip; }
public Boss(string name, Vector2 position, Point size, float summon, int deathCount, int enemynum) : base(name, position, size) { maxCount = deathCount; this.enemynum = enemynum; sound = GameDevice.Instance().GetSound(); attackTimer = new Timer(summon, true); deathTimer = new Timer(0.02f, true); particleTimer = new Timer(0.5f, true); endTimer = new Timer(5.5f, false); downTimer = new Timer(2.5f, false); death = new Flashing(1f, 0f, 2.8f, false, true); vibrationVelocity = new Vector2(2, 0); deathvelocity = new Vector2(0, 2); hitCount = 0; IsDeadFlag = false; isDeadSound = false; hitAlpha = 1f; hitFlashCount = 3; maxFlashCount = 3; }
void Awake() { flashing = GetComponent <Flashing>(); eventManager = GetComponentInChildren <EventManager>(); }