Beispiel #1
0
    protected override void SetupComponents()
    {
        base.SetupComponents();

        m_playerRotator = GetComponent <Player_Rotator>();
        Debug.Assert(m_playerRotator != null, "Player Rotator Is Null");

        m_playerWeaponHolder = GetComponent <Player_WeaponHolder>();
        Debug.Assert(m_playerWeaponHolder != null, "Player Weapon Holder Is Null");

        m_playerInventory = GetComponent <Player_Inventory>();
        Debug.Assert(m_playerInventory != null, "Player Inventory Is Null");

        m_playerAugmentHandler = GetComponent <Player_AugmentHandler>();
        Debug.Assert(m_playerAugmentHandler != null, "Player Augment Handler Is Null");


        Debug.Assert(m_playerInteractionArea != null, "Player Interaction Area Is Null");
    }
 void Start()
 {
     instance    = this;
     dir         = Vector3.forward + Vector3.up;
     lock_facing = false;
 }