Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
    protected void CheckCharDeathAndDestroy()
    {
        CharacterCorpus casterCorpus = componentData.GetCharacterCorpus();

        if (casterCorpus != null)
        {
            if (!casterCorpus.GetIsAlive())
            {
                Destroy(this.gameObject);
            }
        }
    }