public HistoryInfo(AeroNavigationBar Owner)
            {
                this.Owner = Owner;

                this.Owner.GoBack +=
                    delegate
                {
                    if (GoBack.Count == 0)
                    {
                        throw new Exception("GoBack is empty");
                    }

                    GoBack.Pop()();
                };


                this.Owner.GoForward +=
                    delegate
                {
                    if (GoForward.Count == 0)
                    {
                        throw new Exception("GoForward is empty");
                    }

                    GoForward.Pop()();
                };

                this.Owner.ButtonGoForward.Enabled = false;
                this.Owner.ButtonGoBack.Enabled    = false;
            }
Example #2
0
 void OnTriggerEnter(Collider other)
 {
     forwardScript                = other.transform.parent.GetComponent <GoForward>();
     forwardScript.force          = force;
     forwardScript.targetSpeed    = targetSpeed;
     forwardScript.hasTargetSpeed = hasTargetSpeed;
 }
Example #3
0
    void Awake()
    {
        _goForward = GetComponent <GoForward>();
        _auto      = GetComponent <Auto>();
        _blackhole = GetComponent <Blackhole>();
        _enemy     = GetComponent <Enemy>();
        _timer     = GetComponent <Timer>();
        _sploder   = GetComponent <Sploder>();

        Common.SetItem(transform.position.x, transform.position.y, this);

        if (IsKye)
        {
            GameController.Instance.StartPoint = transform.position;
        }
    }
Example #4
0
 void Start()
 {
     goForward = gameObject.AddComponent <GoForward>();
     chaser    = gameObject.AddComponent <Chase>();
 }