Exemple #1
0
    // Use this for initialization
    void Start()
    {
        //selectBox = GameObject.FindObjectOfType<SelectBoxFunctionality>();
        //selectBox.GetComponent<SelectBoxFunctionality>().selectablePlayers.Add(this.gameObject.GetComponent<FriendlyMovement>());

        friendlyCapsule     = GetComponent <CapsuleCollider>();
        characterController = GetComponent <CharacterController>();
        gun = gameObject.GetComponentInChildren <FriendlyFireGun>();
        attackTargetEnemy    = GetComponent <AttackTargetEnemy>();
        handleEnterStructure = GetComponent <HandleEnterStructure>();
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     gun = gameObject.GetComponentInChildren <FriendlyFireGun>();
     friendlyMovement = GetComponent <FriendlyMovement>();
 }