Пример #1
0
    public void LockOut()
    {
        if (m_CurrentCrunk != null)
        {
            m_CurrentCrunk.lockedSlot = null;
        }

        m_CurrentCrunk = null;
        m_LockedIn     = false;
    }
Пример #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>();
 }
Пример #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;
    }
Пример #4
0
 private void Start()
 {
     crunk          = GetComponent <Crunk>();
     crunkAnimation = GetComponent <CrunkAnimation>();
 }
Пример #5
0
 private void Start()
 {
     crunk = GetComponent <Crunk>();
 }