Esempio n. 1
0
    public void LockOut()
    {
        if (m_CurrentCrunk != null)
        {
            m_CurrentCrunk.lockedSlot = null;
        }

        m_CurrentCrunk = null;
        m_LockedIn     = false;
    }
Esempio n. 2
0
 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>();
 }
Esempio n. 3
0
    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;
    }
Esempio n. 4
0
 private void Start()
 {
     crunk          = GetComponent <Crunk>();
     crunkAnimation = GetComponent <CrunkAnimation>();
 }
Esempio n. 5
0
 private void Start()
 {
     crunk = GetComponent <Crunk>();
 }