Example #1
0
 void Awake()
 {
     mainMenu      = GameObject.FindGameObjectWithTag("MainMenu").GetComponent <MainMenu>();
     serialization = GetComponent <BlocksSerialization>();
     blockList     = GameObject.FindGameObjectWithTag("BlockList").GetComponent <BlocksList>();
     loadTiles();
 }
 void Awake()
 {
     serialization = GameObject.FindGameObjectWithTag("BlockArchitect").GetComponent <BlocksSerialization>();
     blockSprite   = Resources.Load <Sprite>("blockSprite");
 }
Example #3
0
 void Awake()
 {
     serialization   = GameObject.FindGameObjectWithTag("BlockArchitect").GetComponent <BlocksSerialization>();
     blocksContainer = transform.GetChild(0).transform.GetChild(2);
 }
Example #4
0
 void Awake()
 {
     serialization = GameObject.FindGameObjectWithTag("BlockArchitect").GetComponent <BlocksSerialization>();
 }
Example #5
0
 void Awake()
 {
     block         = transform.GetChild(0).gameObject;
     serialization = GameObject.FindGameObjectWithTag("BlockArchitect").GetComponent <BlocksSerialization>();
     deleteButton  = transform.GetChild(1).GetComponent <Button>();
 }