示例#1
0
 public static PredatorPlayerAttackData EditPredatorPlayerAttackData(UnitBase unit, PredatorPlayerAttackData predatorPlayerAttackData)
 {
     EditorCommon.EditAttackData(unit, predatorPlayerAttackData);
     predatorPlayerAttackData.CanDoCriticalAttack = EditorGUILayout.Toggle("Can do critical attack ?", predatorPlayerAttackData.CanDoCriticalAttack);
     if (predatorPlayerAttackData.CanDoCriticalAttack)
     {
         predatorPlayerAttackData.CriticalAttackChance    = EditorGUILayout.Slider("Critical attack chance:", 0, 1, predatorPlayerAttackData.CriticalAttackChance);
         predatorPlayerAttackData.CriticalAttackBonusRate = EditorGUILayout.FloatField("Critical attack bonus rate:", predatorPlayerAttackData.CriticalAttackBonusRate);
     }
     return(predatorPlayerAttackData);
 }