Inheritance: MonoBehaviour
Ejemplo n.º 1
0
    void Start()
    {
        _audioManager      = FindObjectOfType <AudioManager>();
        _manager           = FindObjectOfType <PlayerReadyManager>();
        _controllerManager = FindObjectOfType <ControllerManager>();

        _pulseButton = GetComponent <PulseButton>();


        _manager.Register(this);
    }
Ejemplo n.º 2
0
        private void PulseStoryboardCompleted(object sender, EventArgs e)
        {
            PulseXAnimation.From = 1.1;
            PulseYAnimation.From = 1.1;

            PulseXAnimation.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 600));
            PulseYAnimation.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 600));

            PulseStoryBoard.Completed     -= PulseStoryboardCompleted;
            PulseXAnimation.RepeatBehavior = RepeatBehavior.Forever;
            PulseYAnimation.RepeatBehavior = RepeatBehavior.Forever;
            PulseButton.BeginStoryboard(PulseStoryBoard);
            //mouseleave할 때 애니메이션 해제
        }
Ejemplo n.º 3
0
 private void MovePos(int to_i, int to_j, PulseButton.PulseButton btn)
 {
     if (to_i >= tlpLocation.RowCount || to_j >= tlpLocation.ColumnCount)
         return;
     MoveButton(
         tlpLocation.GetRow(btn),
         tlpLocation.GetColumn(btn),
         to_i,
         to_j);
 }