protected override void Awake() { base.Awake(); materialController = this.GetComponentInBranch <CharacterActor, MaterialController>(); if (materialController == null) { Debug.Log("Missing MaterialController component"); this.enabled = false; return; } }
protected override void Awake() { base.Awake(); notGroundedJumpsLeft = verticalMovementParameters.availableNotGroundedJumps; materialController = this.GetComponentInBranch <CharacterActor, MaterialController>(); if (materialController == null) { Debug.Log("Missing MaterialController component"); this.enabled = false; return; } }
void Awake() { CharacterActor = this.GetComponentInBranch <CharacterActor>(); materialController = this.GetComponentInBranch <CharacterActor, MaterialController>(); if (materialController == null) { Debug.Log("CharacterMaterial component missing"); this.enabled = false; } if (groundParticlesPrefab != null) { particlesPooler = new ParticleSystemPooler(groundParticlesPrefab, CharacterActor.transform.position, CharacterActor.transform.rotation, 10); } }