示例#1
0
    void SetInitRef()
    {
        gun_Master = GetComponent <Gun_Master>();

        if (GetComponent <Animator>() != null)
        {
            _animator = GetComponent <Animator>();
        }

        if (MCP_References._player != null)
        {
            player_Master = MCP_References._player.GetComponent <Player_Master>();
            ammoBox       = MCP_References._player.GetComponent <Player_AmmoBox>();
        }
    }
示例#2
0
 void SetInitRef()
 {
     gun_Master = GetComponent <Gun_Master>();
     _transform = transform;
 }
示例#3
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <Gun_Master>();
 }
示例#4
0
 void SetInitRef()
 {
     gun_Master = GetComponent <Gun_Master>();
 }
示例#5
0
 void SetInitialReferences()
 {
     gunMaster    = GetComponent <Gun_Master>();
     myTransform  = transform;
     camTransform = myTransform.parent;
 }
示例#6
0
 void SetInitialReferences()
 {
     gunMaster             = GetComponent <Gun_Master>();
     myTransform           = transform;
     gunMaster.isGunLoaded = true;   //player can attempt shooting right away
 }
示例#7
0
 void SetInitRef()
 {
     gun_Master   = GetComponent <Gun_Master>();
     _transform   = transform;
     camTransform = _transform.parent;
 }
示例#8
0
 void SetInitialReferences()
 {
     gunMaster = transform.GetComponentInParent <Gun_Master>();
 }
 void SetInitRef()
 {
     gun_Master             = GetComponent <Gun_Master>();
     _transform             = transform;
     gun_Master.isGunLoaded = true; //player can attempt to shoot right away.
 }