void Awake() { archManager = GameObject.Find ("ArchManager").GetComponent<ArchManager>(); gameManager = GameObject.Find ("GameManager").GetComponent<GameManager>(); tileManager = GameObject.Find ("TileManager").GetComponent<TileManager>(); materialManager = GameObject.Find ("MaterialManager").GetComponent<MaterialManager>(); }
void Awake() { archManager = GameObject.Find ("ArchManager").GetComponent<ArchManager>(); tileManager = GameObject.Find ("TileManager").GetComponent<TileManager>(); sourceA = GameObject.Find ("SourceA"); sourceB = GameObject.Find ("SourceB"); topRootA = GameObject.Find ("TopRootA"); topRootB = GameObject.Find ("TopRootB"); bottomRootA = GameObject.Find ("BottomRootA"); bottomRootB = GameObject.Find ("BottomRootB"); sourceAttrA = sourceA.GetComponent<SourceAttributes>(); sourceAttrB = sourceB.GetComponent<SourceAttributes>(); topRootAttrA = topRootA.GetComponent<RootAttributes>(); topRootAttrB = topRootB.GetComponent<RootAttributes>(); bottomRootAttrA = bottomRootA.GetComponent<RootAttributes>(); bottomRootAttrB = bottomRootB.GetComponent<RootAttributes>(); energyA = maxEnergy; energyB = maxEnergy; }
void Awake() { gameManager = GameObject.Find ("GameManager").GetComponent<GameManager>(); tileManager = GameObject.Find ("TileManager").GetComponent<TileManager>(); archManager = GameObject.Find ("ArchManager").GetComponent<ArchManager>(); }
public GWSXSPModel(TasksService tasksService, ArchManager <MyArch> archManager) { this.tasksService = tasksService; this.archManager = archManager; }
public ArchsController(ArchManager <MyArch> archManager, TasksService taskService) { this.archManager = archManager; this.taskService = taskService; }
void Awake() { archManager = GameObject.Find ("ArchManager").GetComponent<ArchManager>(); // Only needed once; copy and paste component values onto the script in final version int i = 0; foreach (Transform child in gameObject.transform) { tileArray[i] = child; i++; } lenTileArray = tileArray.Length; }