Ejemplo n.º 1
0
    protected override void SetUpCannon()
    {
        var start = transform.position + transform.up / 2;
        var end   = start + transform.forward * 50f;

        path = new LinePath(count, start, end);
        path.EvaluateWaypoints();
        InvokeRepeating("Shoot", firerate, firerate);
    }