// Start is called before the first frame update
    void Start()
    {
        cam      = Camera.main;
        camOrbit = cam.GetComponentInParent <Powers_CamOrbit>();
        pawn     = GetComponent <CharacterController>();

        targetingSystem = GetComponent <Powers_PlayerTargeting>();
        healthSystem    = GetComponent <Powers_HealthSystem>();
        playerSource    = GetComponent <AudioSource>();

        torsoPoint = torso.GetComponent <Powers_PointAt>();
        armPointL  = armL.GetComponent <Powers_PointAt>();
        armPointR  = armR.GetComponent <Powers_PointAt>();

        legLxRotLastFrame = legL.localRotation.x;
        legLzRotLastFrame = legL.localRotation.z;
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     targetScript = moveScript.GetComponent <Powers_PlayerTargeting>();
     cam          = GetComponentInChildren <Camera>();
 }
 // Start is called before the first frame update
 void Start()
 {
     playerTargeting  = GetComponentInParent <Powers_PlayerTargeting>();
     startingRotation = transform.localRotation; //Get starting rotation
 }