// Use this for initialization void Start() { controller = GetComponent<CharacterController>(); moveDirection = new Vector3(0, 0, 0); Physics.IgnoreLayerCollision(8, gameObject.layer); playerSounds = GetComponent<PlayerSounds>(); playerPublicMethods = GetComponent<PlayerPubMethods>(); }
void Awake() { ppm = player.GetComponent<PlayerPubMethods>(); }