public void LockOut() { if (m_CurrentCrunk != null) { m_CurrentCrunk.lockedSlot = null; } m_CurrentCrunk = null; m_LockedIn = false; }
private void Start() { crunk = GetComponent <Crunk>(); crunkAnimation = GetComponent <CrunkAnimation>(); myShip = crunk.allyShip; if (myShip != null) { lastFrameShipPosition = crunk.parentShip.transform.InverseTransformPoint(transform.position); } body = GetComponent <Rigidbody>(); }
public void LockIn(Crunk c, ModuleSlot slot) { m_CurrentCrunk = c; if (m_CurrentCrunk != null) { if (m_CurrentCrunk.parentShip == m_ParentShip) { m_CurrentCrunk.lockedSlot = slot; } } m_LockedIn = true; }
private void Start() { crunk = GetComponent <Crunk>(); crunkAnimation = GetComponent <CrunkAnimation>(); }
private void Start() { crunk = GetComponent <Crunk>(); }