public void Initialize(float healthRestoreAmount, float needinessIncreaseAmount,
                           PetStatus petStatus)
    {
        this.healthRestoreAmount     = healthRestoreAmount;
        this.needinessIncreaseAmount = needinessIncreaseAmount;
        this.petStatus = petStatus;

        this.petColl = petStatus.GetComponentInChildren <Collider>();
    }
Exemple #2
0
    public void Initialize(PetStatus petStatus, string conditionName,
                           float conditionRestoreValue, float needinessIncreaseAmount)
    {
        this.petStatus               = petStatus;
        this.conditionName           = conditionName;
        this.conditionRestoreValue   = conditionRestoreValue;
        this.needinessIncreaseAmount = needinessIncreaseAmount;

        this.petColl = petStatus.GetComponentInChildren <Collider>();
    }
    public void Initialize(PetStatus petStatus, string conditionName,
                           float conditionRestorePerSecond, float needinessIncreasePerSecond)
    {
        this.petStatus                  = petStatus;
        this.conditionName              = conditionName;
        this.conditionRestorePerSecond  = conditionRestorePerSecond;
        this.needinessIncreasePerSecond = needinessIncreasePerSecond;

        this.petColl = petStatus.GetComponentInChildren <Collider>();
    }
    public void Initialize(PetStatus pet_status, string condition_name,
                           float condition_restore_amount, float neediness_increase_amount)
    {
        this.pet_status                = pet_status;
        this.condition_name            = condition_name;
        this.condition_restore_amount  = condition_restore_amount;
        this.neediness_increase_amount = neediness_increase_amount;

        this.pet_coll = pet_status.GetComponentInChildren <Collider>();
        this.coll     = GetComponentInChildren <Collider>();
    }