// Start is called before the first frame update void Awake() { thisAnimator = gameObject.GetComponent <Animator>(); partManager = gameManager.partManager; partCreator = gameManager.partCreator; crateManager = gameManager.crateManager; partParentLocation = gameManager.partParentLocation; partParent = gameManager.partCreator.partParent; }
private void Awake() { gameManager = gameObject.GetComponent <Game_Manager>(); partCreator = gameObject.GetComponent <Part_Creator>(); //create stuff crate1Animator = crate1.GetComponent <Animator>(); crate2Animator = crate2.GetComponent <Animator>(); crate1Script = crate1.GetComponent <Crate>(); crate2Script = crate2.GetComponent <Crate>(); CrateSet(); }