示例#1
0
 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;
         }
     }
 }
示例#2
0
 protected virtual void _init_cache_motor()
 {
     _motor = GetComponent <motor.Motor_base>();
 }