示例#1
0
 public Ending()
 {
     isEndFlag = false;
     renderer  = Renderer.Instance;
     flashing  = new Flashing(1.0f, 0f, 1f);
     sound     = GameDevice.Instance().GetSound();
 }
示例#2
0
 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();
 }
示例#3
0
 public Title()
 {
     isEndFlag  = false;
     renderer   = Renderer.Instance;
     flashing   = new Flashing(1.0f, 0f, 0.66f);
     sound      = GameDevice.Instance().GetSound();
     spawnEnemy = 4;
 }
示例#4
0
    public override void Start()
    {
        base.Start();

        m_playerController          = GetComponent <PlayerController>();
        m_playerController.m_player = this;

        flashing = GetComponent <Flashing>();
    }
示例#5
0
        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();
        }
示例#6
0
 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();
 }
示例#7
0
    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;
    }
示例#8
0
 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;
 }
示例#9
0
 void Awake()
 {
     flashing     = GetComponent <Flashing>();
     eventManager = GetComponentInChildren <EventManager>();
 }