Exemplo n.º 1
0
        public SimpleTimerView()
        {
            InitializeComponent();

            this.blinkManager        = new BlinkManager();
            this.blinkManager.Blink += BlinkManager_Blink;

            this.tibInput = new TimeInputBox();
            this.InitialiseTxtInput();

            this.timer = new Timer()
            {
                Interval = 1000,
            };

            this.timer.Tick += Timer_Tick;

            this.messageTimer       = new Timer();
            this.messageTimer.Tick += MessageTimer_Tick;

            this.stopped      = true;
            this.DisplayState = DisplayState.Timer;
            this.TimerState   = TimerState.Stopped;
            this.ApplySettings(SimpleTimerSettings.Default);

            this.SizeChanged += (_, __) => this.lblTimer.MaximumSize = new Size(this.Width - 30, 0);
        }
Exemplo n.º 2
0
    void Start()
    {
        isRadarOn  = true;
        canControl = true;

        //rb = GetComponent<Rigidbody>();
        var radar = FindObjectOfType <Rotate>();

        radarRay = radar.gameObject;

        camShake     = FindObjectOfType <CameraShake>();
        lvlManager   = FindObjectOfType <LevelManager>();
        menuManager  = FindObjectOfType <MenuManager>();
        blinkManager = FindObjectOfType <BlinkManager>();
        audioManager = FindObjectOfType <AudioManager>();
        timerManager = FindObjectOfType <TimerManager>();

        shield = GetComponent <BoosterShieldV2>();
        magnet = FindObjectOfType <MagnetZone>();
        turbo  = FindObjectOfType <BoosterTurbov2>();

        direction = Vector3.up;

        nextTimeblink       = Time.time;
        nextTimeblinkSunken = Time.time;
    }
Exemplo n.º 3
0
    // Start is called before the first frame update
    new void Start()
    {
        base.Start();

        blinkManager = FindObjectOfType <BlinkManager>();

        lvlManager = FindObjectOfType <LevelManager>();
    }
Exemplo n.º 4
0
    // Start is called before the first frame update
    void Start()
    {
        imgObj = GetComponent <Image>();

        var blinkObj = GameObject.Find("BlinkManager");

        // マネージャーを取得
        blink = blinkObj.GetComponent <BlinkManager>();
    }
Exemplo n.º 5
0
    // Start is called before the first frame update
    void Start()
    {
        //genMng = FindObjectOfType<GeneratorManager>();
        bm = FindObjectOfType <BlinkManager>();
        am = FindObjectOfType <AudioManager>();

        rend        = GetComponent <SpriteRenderer>();
        rend.sprite = spriteYellow;
        spriteColor = rend.color;
    }
Exemplo n.º 6
0
    // Start is called before the first frame update
    void Start()
    {
        bm = FindObjectOfType <BlinkManager>();

        rend        = GetComponent <SpriteRenderer>();
        rend.sprite = spriteWhite;

        ignoreActivation = false;

        // for the blinking animation
        spriteColor = rend.color;
    }
Exemplo n.º 7
0
    Transform _selection;   // to deactivate generator

    // Start is called before the first frame update
    void Start()
    {
        bm        = FindObjectOfType <BlinkManager>();
        thePlayer = FindObjectOfType <PlayerController>();

        // setting the line renderer
        rayLineRenderer = GetComponent <LineRenderer>();
        Vector3[] initRayPositions = new Vector3[2] {
            Vector3.zero, Vector3.zero
        };
        rayLineRenderer.SetPositions(initRayPositions);
        rayLineRenderer.SetWidth(rayWidth, rayWidth);
    }
Exemplo n.º 8
0
    // Start is called before the first frame update
    void Start()
    {
        rend = GetComponent <SpriteRenderer>();

        blinkManager = FindObjectOfType <BlinkManager>();
        lifeTime     = (isQuickFading) ? blinkManager.blinkLifeTimeShort : blinkManager.blinkLifeTimeLong;

        spriteColor = rend.color;
        rend.color  = new Color(spriteColor.r, spriteColor.g, spriteColor.b, 0);
        //Fade(false, lifeTime);

        poolManager = FindObjectOfType <PoolManager>();
        initParent  = poolManager.poolHolder;
    }
Exemplo n.º 9
0
    void Start()
    {
        mm      = FindObjectOfType <MenuManager>();
        bm      = FindObjectOfType <BlinkManager>();
        chatMng = FindObjectOfType <ChatManager>();
        am      = FindObjectOfType <AudioManager>();

        // setting the line renderer
        rayLineRenderer = GetComponent <LineRenderer>();
        Vector3[] initRayPositions = new Vector3[2] {
            Vector3.zero, Vector3.zero
        };
        rayLineRenderer.SetPositions(initRayPositions);
        rayLineRenderer.SetWidth(rayWidth, rayWidth);
    }
Exemplo n.º 10
0
    // Start is called before the first frame update
    void Start()
    {
        bm = FindObjectOfType <BlinkManager>();
        //nextTimeBlink = Time.time;
        thePlayer = FindObjectOfType <PlayerController>();
        camShake  = FindObjectOfType <CameraShake>();

        // setting the line renderer
        rayLineRenderer = GetComponent <LineRenderer>();
        Vector3[] initRayPositions = new Vector3[2] {
            Vector3.zero, Vector3.zero
        };
        rayLineRenderer.SetPositions(initRayPositions);
        rayLineRenderer.SetWidth(rayWidth, rayWidth);

        showBlinksDst += rayLength;
    }
Exemplo n.º 11
0
    // Start is called before the first frame update
    public void Start()
    {
        AssignRBs();
        rb = GetComponent <Rigidbody>();

        bm           = FindObjectOfType <BlinkManager>();
        lvlManager   = FindObjectOfType <LevelManager>();
        camShake     = FindObjectOfType <CameraShake>();
        audioManager = FindObjectOfType <AudioManager>();

        blinkType = AssignIcon();

        bm.CreateBlinkFollow(blinkType[0], transform.position, gameObject);

        thePlayer = null;
        if (gameObject.tag == "sunken")
        {
            initDrag  = GetComponent <Rigidbody>().drag;
            thePlayer = FindObjectOfType <PlayerController>();
        }
    }
Exemplo n.º 12
0
    // Start is called before the first frame update
    void Start()
    {
        bm = FindObjectOfType <BlinkManager>();

        nextTimeBlink = Time.time;
    }
Exemplo n.º 13
0
 void Awake()
 {
     Instance = this;
     _Block   = new MaterialPropertyBlock();
 }