// Use this for initialization protected void Start() { SM = FindObjectOfType <L2RTSServerManager>(); cg = GetComponent <CanvasGroup>(); SM.selectionManager.SelectionChangedEvent += OnSelectionChanged; Hide(); }
protected virtual void Awake() { _actionQueue = new SimpleActionQueue(); hasActualPosition = false; SM = FindObjectOfType <L2RTSServerManager>(); actorInfoPanel = FindObjectOfType <ActorInfoPanelScript>(); }
private void OnEnable() { SM = FindObjectOfType <L2RTSServerManager>(); SM.ServerStartedEvent += () => { RegisterToEvents(); }; }
private void OnEnable() { SM = GameObject.Find("L2RTSServer").GetComponent <L2RTSServerManager>(); SM.ServerStartedEvent += () => { RegisterToEvents(); }; }
protected void Awake() { SM = FindObjectOfType <L2RTSServerManager>(); selectionRect = FindObjectOfType <SelectionRect>(); }
// Use this for initialization void Start() { SM = FindObjectOfType <L2RTSServerManager>(); LoadTextureByCoordinates(); }
protected void OnEnable() { SM = GameObject.Find("L2RTSServer").GetComponent <L2RTSServerManager>(); SM.ServerStartedEvent += RegisterToEvents; }
protected void Awake() { actor = GetComponent <UserActorScript>(); SM = FindObjectOfType <L2RTSServerManager>(); stateStack = new Stack <PersonalAIState>(); }
protected void Start() { SM = FindObjectOfType <L2RTSServerManager>(); }
void Awake() { _actionQueue = new SimpleActionQueue(); SM = FindObjectOfType <L2RTSServerManager>(); }
// Use this for initialization void Start() { SM = FindObjectOfType <L2RTSServerManager>(); InvokeRepeating("UpdateTiles", TILE_UPDATE_TIME_S, TILE_UPDATE_TIME_S); }
protected void Start() { image = GetComponent <Image>(); SM = FindObjectOfType <L2RTSServerManager>(); }