Example #1
0
 BarState Update(BarState state, MoveBar msg)
 {
     if (!state.canMove)
     {
         return(state);
     }
     state.barPosition = msg.position;
     return(state);
 }
Example #2
0
 private void Start()
 {
     audioSrc = GetComponent <AudioSource>();
     //  thisCam = gameObject.GetComponentInChildren<Camera>();
     thisCam.enabled = false;
     FinalValue      = Minigame.GetComponentInChildren <MoveBar>().finalValue;
     movement        = this.GetComponent <Movement>();
     Bar             = Minigame.GetComponentInChildren <MoveBar>();
     CreateList();
 }
Example #3
0
    void Start()
    {
        RunningTime = gameManager.PRIMETIME;
        OverTime    = 5 - gameManager.PRIMETIME;

        Img           = GetComponent <Image>();
        RectTr        = GetComponent <RectTransform>();
        StartPosition = RectTr.position;
        EndPosition   = transform.parent.GetComponent <RectTransform>().position;
        BarMove      += Move;
    }
Example #4
0
 public float OverTime;    //목표 도달 이후에 이동하는 시간
                           // Use this for initialization
 private void Awake()
 {
     BarMove = null;
 }