Пример #1
0
    // Use this for initialization
    void Start()
    {
        t_Player      = transform.parent.transform.parent;
        WeaponManager = t_Player.GetComponent <C_WEAPONMANAGER>();

        SetProjectilePoint();
    }
Пример #2
0
 private void Awake()
 {
     // Connections
     this_GameObject         = gameObject;
     this_RigidBody          = this_GameObject.GetComponent <Rigidbody>();
     this_CameraObject       = this_GameObject.transform.Find("Camera").gameObject;
     this_WallrunCollider[0] = this_GameObject.transform.Find("WallrunCollider_Top").gameObject;
     this_WallrunCollider[1] = this_GameObject.transform.Find("WallrunCollider_Bottom").gameObject;
     colliderBot             = this_WallrunCollider[0].GetComponent <C_WallrunColliderLogic>();
     colliderTop             = this_WallrunCollider[1].GetComponent <C_WallrunColliderLogic>();
     go_WeaponObject         = this_CameraObject.transform.Find("Weapons").gameObject;
     this_WeaponManager      = this_GameObject.GetComponent <C_WEAPONMANAGER>();
     go_SystemManager        = GameObject.Find("SystemManager");
     this_SystemManager      = go_SystemManager.GetComponent <C_SystemManager>();
     this_HealthManager      = this_GameObject.GetComponent <C_HealthManager>();
 }