예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        list = GetComponentsInChildren <IAttackHitbox>();
        collisionDictionary = new Dictionary <GameObject, List <IHitbox> >();
        victims             = new List <GameObject>();

        passive = GetComponentInParent <RonPassive>();
    }
 public RonSideSpecialMovementStatus(float speed, RonPassive ronPassive, float movementRatio, int duration) : base(duration)
 {
     passive                     = ronPassive;
     sideSpecialSpeed            = speed;
     sideSpecialDecelerationRate = 30.0f;
     ratio         = movementRatio;
     frameDuration = START_DURATION + MOVEMENT_DURATION + END_DURATION;
     InitializeStatus();
 }
    // Start is called before the first frame update
    void Start()
    {
        hitboxes = new Dictionary <string, HitboxManager>();
        HitboxManager[] list = GetComponentsInChildren <HitboxManager>();
        foreach (HitboxManager hitbox in list)
        {
            hitboxes.Add(hitbox.name, hitbox);
            //Debug.Log(hitbox.name);
        }
        activatedHitboxes = new List <HitboxManager>();

        shield = GetComponentInChildren <IShield>();

        character = GetComponent <ICharacter>();
        passive   = GetComponent <RonPassive>();
    }
예제 #4
0
 protected override void InitializeComponents()
 {
     base.InitializeComponents();
     passive = GetComponent <RonPassive>();
 }
 public RonPassiveBuffStatus(float buffRatio, RonPassive ronPassive) : base(buffRatio)
 {
     passive     = ronPassive;
     IsPermanent = true;
     InitializeStatus();
 }