Ejemplo n.º 1
0
 // Use this for initialization
 protected void Start()
 {
     SM = FindObjectOfType <L2RTSServerManager>();
     cg = GetComponent <CanvasGroup>();
     SM.selectionManager.SelectionChangedEvent += OnSelectionChanged;
     Hide();
 }
Ejemplo n.º 2
0
 protected virtual void Awake()
 {
     _actionQueue      = new SimpleActionQueue();
     hasActualPosition = false;
     SM             = FindObjectOfType <L2RTSServerManager>();
     actorInfoPanel = FindObjectOfType <ActorInfoPanelScript>();
 }
Ejemplo n.º 3
0
 private void OnEnable()
 {
     SM = FindObjectOfType <L2RTSServerManager>();
     SM.ServerStartedEvent += () =>
     {
         RegisterToEvents();
     };
 }
Ejemplo n.º 4
0
 private void OnEnable()
 {
     SM = GameObject.Find("L2RTSServer").GetComponent <L2RTSServerManager>();
     SM.ServerStartedEvent += () =>
     {
         RegisterToEvents();
     };
 }
Ejemplo n.º 5
0
 protected void Awake()
 {
     SM            = FindObjectOfType <L2RTSServerManager>();
     selectionRect = FindObjectOfType <SelectionRect>();
 }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     SM = FindObjectOfType <L2RTSServerManager>();
     LoadTextureByCoordinates();
 }
Ejemplo n.º 7
0
 protected void OnEnable()
 {
     SM = GameObject.Find("L2RTSServer").GetComponent <L2RTSServerManager>();
     SM.ServerStartedEvent += RegisterToEvents;
 }
Ejemplo n.º 8
0
 protected void Awake()
 {
     actor      = GetComponent <UserActorScript>();
     SM         = FindObjectOfType <L2RTSServerManager>();
     stateStack = new Stack <PersonalAIState>();
 }
Ejemplo n.º 9
0
 protected void Start()
 {
     SM = FindObjectOfType <L2RTSServerManager>();
 }
Ejemplo n.º 10
0
 void Awake()
 {
     _actionQueue = new SimpleActionQueue();
     SM           = FindObjectOfType <L2RTSServerManager>();
 }
Ejemplo n.º 11
0
 // Use this for initialization
 void Start()
 {
     SM = FindObjectOfType <L2RTSServerManager>();
     InvokeRepeating("UpdateTiles", TILE_UPDATE_TIME_S, TILE_UPDATE_TIME_S);
 }
Ejemplo n.º 12
0
 protected void Start()
 {
     image = GetComponent <Image>();
     SM    = FindObjectOfType <L2RTSServerManager>();
 }