Exemple #1
0
 // 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;
 }
Exemple #2
0
 public FootballPlayerEventEffector(ISkill srcSkill, PlayerLocator locator, List <IBoostEffect> booster, List <INormalEffect> buffFeeder, List <ISpecEffect> specFeeder)
     : base(srcSkill, locator, booster, buffFeeder, specFeeder)
 {
 }
Exemple #3
0
 public FootballPlayerEventEffector(PlayerLocator locator, List <IEffect> effects)
     : base(locator, effects)
 {
 }
Exemple #4
0
 void Awake()
 {
     DontDestroyOnLoad(gameObject);
     Current          = this;
     PlayerGameObject = gameObject;
 }
	void Awake()
	{
		DontDestroyOnLoad(gameObject);
		Current = this;
		PlayerGameObject = gameObject;
	}
Exemple #6
0
 private void Awake()
 {
     UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
     PlayerLocator.Current          = this;
     PlayerLocator.PlayerGameObject = base.gameObject;
 }