protected override void Awake() { base.Awake(); if (tno.isMine) { instance = this; } Settings = BattleGameObjects.instance.settings; _battlePlayer = GetComponent <BattlePlayer>(); mRb = GetComponent <Rigidbody>(); }
/* * 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; }
protected override void Awake() { base.Awake(); gameEvents = BattleGameObjects.instance.gameEvents; settings = BattleGameObjects.instance.settings; }