void Start() { checkTouch = GameObject.FindGameObjectWithTag("gameController").GetComponent <touchManager>(); buildingSelect = GameObject.FindGameObjectWithTag("gameController").GetComponent <buildingSelection>(); gridArray = GetComponentInParent <gridLayout>(); //Add action test if (actManObj == null) { actManObj = GameObject.Find("gameController"); } ; actionManager actMan = actManObj.GetComponent <actionManager>(); //int listId = actMan.AddAction (this.gameObject, actionManager.inputType.tap, true, OnTapped); }
void Start() { if (touchMan == null) { touchMan = GameObject.Find("_Managers").GetComponent <touchManager>(); } if (menuParent == null) { menuParent = GetComponentInParent <adjustMenu>(); } if (hexa == null) { hexa = menuParent.hexa; } if (robotParent == null) { robotParent = GameObject.Find("Robots").GetComponent <Transform>(); } }
// Start is called before the first frame update void Start() { if (touchM == null) { touchM = GameObject.Find("_Managers").GetComponent <touchManager>(); } if (turretObj == null) { turretObj = Resources.Load <GameObject>("turret"); } if (hexa == null) { hexa = GameObject.Find("Hexasphere").GetComponent <Hexasphere>(); } if (tileExtrude == null) { tileExtrude = GameObject.Find("extrude").GetComponent <setTileExtrude>(); } }