void Awake()
 {
     if (targetedPlayer == null)
     {
         targetedPlayer = ScriptableObject.CreateInstance <TargetedPlayer>();
     }
     if (targetedPlayer.isNull())
     {
         targetedPlayer.SetNewPlayer(this);
     }
 }
Beispiel #2
0
 public void setTargetedPlayer(TargetedPlayer targetedPlayer)
 {
     this.targetedPlayer = targetedPlayer;
 }