protected override void _init_cache() { base._init_cache(); if (motor == null) { motor = GetComponent <controller.motor.Motor_base>(); if (motor == null) { Debug.LogError("no se encontro el motor"); } if (damage_mask.value == 0) { damage_mask = helper.consts.layers.receives_damage; } if (stat != null) { total_of_points = stat.total; current_points = stat.current; } } }
protected virtual void _init_cache_motor() { _motor = GetComponent <motor.Motor_base>(); }