public void LoadLaunchParameters(CharacterComponentData charData, Vector3 worldLaunch, int facingDirection) { this.componentData = charData; firingInvokable = componentData.GetFiringController().GetEquipedInvokable(); characterTransform = charData.GetCharacterTransform(); worldLaunchVector = worldLaunch; direction = facingDirection; firingTeam = charData.GetCharacterCorpus().GetTeam(); }
protected void CheckCharDeathAndDestroy() { CharacterCorpus casterCorpus = componentData.GetCharacterCorpus(); if (casterCorpus != null) { if (!casterCorpus.GetIsAlive()) { Destroy(this.gameObject); } } }