Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        Height = Camera.pixelHeight;
        Width  = Camera.pixelWidth;

        Event = GameObject.Find("Background").GetComponent <CEventManager>();
        Event.DrawTrajectory += OnDrawTrajectory;
        Event.DestroyCoin    += OnDestroyCoin;
        Event.FirstMove      += OnSendFirstCoordinate;
        Event.PauseOff       += OnPauseOff;

        TargetList = new List <GameObject>();
        CreateCoin();
    }
Пример #3
0
 private void Start()
 {
     Event      = GameObject.Find("Background").GetComponent <CEventManager>();
     Event.Win += OnWin;
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     Event            = GameObject.Find("Background").GetComponent <CEventManager>();
     Event.StartMove += OnMove;
     Event.SendPlayerCoordinate(transform.position);
 }
Пример #5
0
 // Start is called before the first frame update
 void Start()
 {
     Event          = GameObject.Find("Background").GetComponent <CEventManager>();
     Event.PauseOn += OnPauseMode;
 }