private void Start() { GameEntity bumperEntity = Contexts.sharedInstance.game.CreateEntity(); bumperEntity.isBumper = true; bumperEntity.AddView(gameObject); bumperEntity.AddPosition(transform.position); bumperEntity.AddAudioSource(gameObject.GetComponent <AudioSource>()); gameObject.Link(bumperEntity); }
private void Start() { GameEntity goalEntity = Contexts.sharedInstance.game.CreateEntity(); goalEntity.isLevelSelectionPlayer = true; goalEntity.AddView(gameObject); goalEntity.AddPosition(transform.position); goalEntity.AddAudioSource(gameObject.GetComponent <AudioSource>()); gameObject.Link(goalEntity); }