Esempio n. 1
0
 public ConeProcess(Pattern.RuntimeParameters rParams, float angle, float radius, float telegraphDuration, float attackDuration, Cone prefab, GameObject telegraphEffect) : base(telegraphDuration + attackDuration)
 {
     runParams              = rParams;
     this.angle             = angle;
     this.radius            = radius;
     this.telegraphDuration = telegraphDuration;
     this.attackDuration    = attackDuration;
     this.prefab            = prefab;
 }
Esempio n. 2
0
 private void CreateCones()
 {
     foreach (AttackPoint point in runParams.attackPoints)
     {
         if (!point.shootingEnabled)
         {
             continue;
         }
         Cone cone = Object.Instantiate(prefab.gameObject, point.transform.position, Quaternion.Euler(0f, 0f, point.rotation), point.transform).GetComponent <Cone>();
         cone.SetAngleRadius(angle, radius);
         cones.Add(cone);
     }
 }