コード例 #1
0
ファイル: BumperBehaviour.cs プロジェクト: Jadugarr/Flicker
        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);
        }
コード例 #2
0
        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);
        }