private void Awake() { meshLibrary = new Mesh[7][]; meshLibrary[0] = part00Meshes; meshLibrary[1] = part01Meshes; meshLibrary[2] = part02Meshes; meshLibrary[3] = part03Meshes; meshLibrary[4] = part04Meshes; meshLibrary[5] = part05Meshes; meshLibrary[6] = part06Meshes; meshMaterialLibrary = new Material[7][]; meshMaterialLibrary[0] = part00Mats; meshMaterialLibrary[1] = part01Mats; meshMaterialLibrary[2] = part02Mats; meshMaterialLibrary[3] = part03Mats; meshMaterialLibrary[4] = part04Mats; meshMaterialLibrary[5] = part05Mats; meshMaterialLibrary[6] = part06Mats; //Get the animator variables so we don't call GetComponent() every time dollParentAnimator = dollParent.GetComponent <Animator>(); partManager.dollParentAnimator = dollParentAnimator; coreParentAnimator = coreParent.GetComponent <Animator>(); gameManager.coreParentAnimator = coreParentAnimator; //gets crateManager crateManager = gameManager.crateManager; }
// 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; }
public void Awake() { socketLaser.partManager = partManager; crateManager = gameObject.GetComponent <Crate_Manager>(); }
private void Awake() { crateManager = gameManager.crateManager; partParent = gameManager.partCreator.partParent; }