void Awake() { movement = new PlatformerControllerMovement(); jump = new PlatformerControllerJumping(); movement.direction = transform.TransformDirection(Vector3.forward); controller = GetComponent<CharacterController>(); Spawn(); }
void Awake() { movement = new PlatformerControllerMovement(); jump = new PlatformerControllerJumping(); movement.direction = transform.TransformDirection(Vector3.forward); controller = GetComponent <CharacterController>(); Spawn(); }
public void Start() { //Instantiate Player Attributes movement = new PlatformerControllerMovement(); jump = new PlatformerControllerJumping(); controller = new CharacterController(); controller = GetComponent <CharacterController>(); movement.direction = transform.TransformDirection(Vector3.forward); //Establish control on the ground canControl = true; canMoveV = false; canMoveH = true; //Lastly, spawn Spawn(); }
protected virtual void CharacterAwake() { movement = new PlatformerControllerMovement(); jump = new PlatformerControllerJumping(); movement.direction = transform.TransformDirection(Vector3.forward); controller = GetComponent<CharacterController>(); playerController = GetComponent<PlayerController>(); audioSource = GetComponent<AudioSource>(); }
public PlatformerControllerJumping(PlatformerControllerJumping other) { enabled = other.enabled; height = other.height; extraHeight = other.extraHeight; }
public void Start() { //Instantiate Player Attributes movement = new PlatformerControllerMovement(); jump = new PlatformerControllerJumping(); controller = new CharacterController(); controller = GetComponent<CharacterController>(); movement.direction = transform.TransformDirection(Vector3.forward); //Establish control on the ground canControl = true; canMoveV = false; canMoveH = true; //Lastly, spawn Spawn(); }
public PlatformerControllerJumping(PlatformerControllerJumping other) { enabled = other.enabled; height = other.height; extraHeight = other.extraHeight; }