Exemplo n.º 1
0
    public ShootNode(GameObject Projectile, GetTargetDelegate GetTarget, float Speed, float CooldownTime, GameObject Shooter, AnimationManager AnimationManager, float animDelay)
    {
        this.Projectile   = Projectile;
        this.CooldownTime = CooldownTime;
        this.Shooter      = Shooter;
        this.GetTarget    = GetTarget;
        this.Speed        = Speed;
        this.AnimManager  = AnimationManager;
        this.AnimDelay    = animDelay;

        Transform     = Shooter.GetComponent <Transform>();
        ShooterScript = Shooter.GetComponent <Enemy>();
        RigidBody     = Shooter.GetComponent <Rigidbody>();
    }
Exemplo n.º 2
0
 public WalkToPlayerNode(GetTargetDelegate GetTarget, float Range, NavMeshAgent Agent)
 {
     this.GetTarget = GetTarget;
     this.Agent     = Agent;
     this.Range     = Range;
 }