// Use this for initialization void Awake() { Assert.IsNotNull(kPlayerOne.kPlayer); Assert.IsNotNull(kPlayerTwo.kPlayer); Assert.IsNull(m_Locator); kPlayerOne.kController = kPlayerOne.kPlayer.GetComponent <PlayerController>(); kPlayerTwo.kController = kPlayerTwo.kPlayer.GetComponent <PlayerController>(); m_Locator = this; }
public FootballPlayerEventEffector(ISkill srcSkill, PlayerLocator locator, List <IBoostEffect> booster, List <INormalEffect> buffFeeder, List <ISpecEffect> specFeeder) : base(srcSkill, locator, booster, buffFeeder, specFeeder) { }
public FootballPlayerEventEffector(PlayerLocator locator, List <IEffect> effects) : base(locator, effects) { }
void Awake() { DontDestroyOnLoad(gameObject); Current = this; PlayerGameObject = gameObject; }
private void Awake() { UnityEngine.Object.DontDestroyOnLoad(base.gameObject); PlayerLocator.Current = this; PlayerLocator.PlayerGameObject = base.gameObject; }