Beispiel #1
0
 protected override void Awake()
 {
     base.Awake();
     if (tno.isMine)
     {
         instance = this;
     }
     Settings      = BattleGameObjects.instance.settings;
     _battlePlayer = GetComponent <BattlePlayer>();
     mRb           = GetComponent <Rigidbody>();
 }
Beispiel #2
0
 /*
  * public Transform GetRotationAnchor()
  * {
  *  if (rotationAnchorObject != null)
  *  {
  *      return rotationAnchorObject.transform;
  *  }
  *  return GlobalRotationAnchor.transform;
  * }
  *
  * public Transform GetTarget()
  * {
  *  if (target != null)
  *  {
  *      return target.transform;
  *  }
  *  return DefaultTarget.transform;
  * }
  */
 private void Awake()
 {
     Settings = BattleGameObjects.instance.settings;
 }
Beispiel #3
0
 protected override void Awake()
 {
     base.Awake();
     gameEvents = BattleGameObjects.instance.gameEvents;
     settings   = BattleGameObjects.instance.settings;
 }