public override void Trigger(GameObject Actor) { if (Actor != null) { mol = Actor.GetComponent <MoluvushaHolder>(); if (mol == null) { Debug.LogError("Actor is does not have Moluvusha Holder"); return; } mol.EnableGrow(); } }
void Start() { molZRootScript = GetComponentInChildren <MoluvushaZRootInteractable>(); if (GetComponentInParent <MoluvushaHolder>()) { GetComponent <Rigidbody>().isKinematic = true; isAttached = true; molHolderScript = GetComponentInParent <MoluvushaHolder>(); } else { isAttached = false; } molZRootScript.isEnable = false; }
void Start() { molScript = GetComponentInChildren <MoluvushaHolder>(); }