Esempio n. 1
0
 public void ShootRandomTarget()
 {
     launcher.Launch(
         from:   spawnPoint.transform.position,
         to:     targetPositions[UnityEngine.Random.Range(0, targetPositions.Length)].position,
         scale:  transform.localScale.x + 0.3f,
         name:   "TrebuchedMissile"
         );
 }
Esempio n. 2
0
    public override void ExecuteAt(Vector3 position)
    {
        CallOnSkillExecutionStartEvent();

        if (setZByY)
        {
            position.z = position.y * settings.Scale;
        }

        var scale = 1f;

        if (scaleByPos)
        {
            scale = scaleSettings.LerpEvaluete(position);
        }

        launcher.Launch(
            from: position + startPositionoffset,
            to: position,
            scale
            );
    }