// Start is called before the first frame update void Start() { if (_instance == null) { _instance = this; } }
// 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(); }
private void Start() { Event = GameObject.Find("Background").GetComponent <CEventManager>(); Event.Win += OnWin; }
// Start is called before the first frame update void Start() { Event = GameObject.Find("Background").GetComponent <CEventManager>(); Event.StartMove += OnMove; Event.SendPlayerCoordinate(transform.position); }
// Start is called before the first frame update void Start() { Event = GameObject.Find("Background").GetComponent <CEventManager>(); Event.PauseOn += OnPauseMode; }