示例#1
0
 private void Awake()
 {
     stats = Utilities.CheckScriptableObject <AfterburnerStats>(stats);
     if (rb == null)
     {
         rb = GetComponentInChildren <Rigidbody>();
     }
     charge = stats.capacity;
 }
示例#2
0
 private void Awake()
 {
     stats  = Utilities.CheckScriptableObject <AfterburnerStats>(stats);
     charge = stats.capacity;
 }
示例#3
0
 public override void Initialize(Ship sender)
 {
     base.Initialize(sender);
     rb    = sender.rb;
     stats = Utilities.CheckScriptableObject <AfterburnerStats>(stats);
 }