// Start is called before the first frame update
 void Start()
 {
     dashing    = false;
     rb         = GetComponent <Rigidbody>();
     squareMain = GetComponent <OldSquareMain>();
     playerMove = GetComponent <OldPlayerMove>();
 }
Beispiel #2
0
 void Awake()
 {
     rb   = GetComponent <Rigidbody>();
     anim = GetComponentInChildren <Animator>();
     playerGroundCheck = GetComponentInChildren <OldPlayerGroundCheck>();
     playerMove        = GetComponent <OldPlayerMove>();
     squareMain        = GetComponent <OldSquareMain>();
 }
 // Start is called before the first frame update
 void Start()
 {
     slaming           = false;
     rb                = GetComponent <Rigidbody>();
     circleMain        = GetComponent <OldCircleMain>();
     playerMove        = GetComponent <OldPlayerMove>();
     playerGroundCheck = GetComponent <OldPlayerGroundCheck>();
 }
Beispiel #4
0
 void Awake()
 {
     playerMove       = GetComponent <OldPlayerMove>();
     playerJump       = GetComponent <OldPlayerJump>();
     playerDoubleJump = GetComponent <OldPlayerDoubleJump>();
     //playerSwim = GetComponent<OldPlayerSwim>();
     //playerSwimBoost = GetComponent<OldPlayerSwimBoost>();
     playerInteract = GetComponent <OldPlayerInteract>();
     circleSlam     = GetComponent <OldCircleSlam>();
 }
 void Awake()
 {
     playerMove = GetComponent <OldPlayerMove>();
     playerJump = GetComponent <OldPlayerJump>();
     //playerSwim = GetComponent<OldPlayerSwim>();
     //playerSwimBoost = GetComponent<OldPlayerSwimBoost>();
     playerInteract = GetComponent <OldPlayerInteract>();
     squareWallJump = GetComponent <OldSquareWallJump>();
     squareDash     = GetComponent <OldSquareDash>();
 }
 // Start is called before the first frame update
 void Awake()
 {
     cubeMain                  = FindObjectOfType <OldSquareMain>();
     sphereMain                = FindObjectOfType <OldCircleMain>();
     cubeMove                  = cubeMain.GetComponent <OldPlayerMove>();
     sphereMove                = sphereMain.GetComponent <OldPlayerMove>();
     cubeGroundCheck           = cubeMain.GetComponent <OldPlayerGroundCheck>();
     sphereGroundCheck         = sphereMain.GetComponent <OldPlayerGroundCheck>();
     cubeRb                    = cubeMain.GetComponent <Rigidbody>();
     sphereRb                  = sphereMain.GetComponent <Rigidbody>();
     cubeAnim                  = cubeMain.GetComponentInChildren <Animator>();
     sphereAnim                = sphereMain.GetComponentInChildren <Animator>();
     cubeCameraFollow          = cubeCamera.GetComponent <OldCameraFollow>();
     sphereCameraFollow        = sphereCamera.GetComponent <OldCameraFollow>();
     cubeCameraFollow.player   = cubeRb;
     sphereCameraFollow.player = sphereRb;
 }