コード例 #1
0
ファイル: Ball3.cs プロジェクト: Ir-sy/Boxing-Day
 void Awake()
 {
     _PMCreation       = PMCreation._PMCreation;
     gameUI            = GameUI._gameUI;
     level3Script      = FindObjectOfType <Level03>();
     ballRenderer      = GetComponent <Renderer>();
     ballRigidbody     = GetComponent <Rigidbody>();
     ballTrailRenderer = GetComponent <TrailRenderer>();
     ballAudioSource   = GetComponent <AudioSource>();
 }
コード例 #2
0
    void Start()
    {
        _PMCreation = PMCreation._PMCreation;

        if (_PMCreation != null)
        {
            Debug.Log("PMCreation Found");
        }
        else
        {
            Debug.Log("PMCreation not Found");
        }
    }
コード例 #3
0
    void Start()
    {
        _PMCreation = PMCreation._PMCreation;
        gameUI      = GameUI._gameUI;
        player      = _PMCreation.player;

        playerHolder = new GameObject("PlayerHolder");

        SpawnAllPlayers();
        SetGoalTrigger();
        SetupRulesPanel();
        StartCoroutine(GameLoop());
    }
コード例 #4
0
 void ConfirmationInput()
 {
     if (canConfirm)
     {
         if (Input.GetButtonDown("J1_A"))
         {
             Debug.Log("PlayerOne Confirmed");
             joinLobby.SetActive(false);
             playingLobby.SetActive(true);
             GameObject PMCreation  = new GameObject("PMCreation");
             PMCreation _PMCreation = PMCreation.AddComponent <PMCreation>();
             _PMCreation.prePlayerManagerReady = GetPrePlayerManagerReady();
             this.enabled = false;
         }
     }
 }
コード例 #5
0
ファイル: Level02.cs プロジェクト: Ir-sy/Boxing-Day
    void Start()
    {
        _PMCreation = PMCreation._PMCreation;

        if (_PMCreation != null)
        {
            Debug.Log("PMCreation Found");
        }
        else
        {
            Debug.Log("PMCreation not Found");
        }

        gameUI = GameUI._gameUI;

        if (gameUI != null)
        {
            Debug.Log("GameUI Found");
        }
        else
        {
            Debug.Log("GameUI not Found");
        }

        player = _PMCreation.player;

        playerHolder = new GameObject("PlayerHolder");

        if (playerHolder != null)
        {
            Debug.Log("PlayerHolder Made");
        }
        else
        {
            Debug.Log("PlayerHolder Failed");
        }

        Debug.Log("Current Level: " + _PMCreation.levelNumber);

        SpawnAllPlayers();
        SetupRulesPanel();
        StartCoroutine(GameLoop());
    }
コード例 #6
0
    void SingletonPattern()
    {
        if (_PMCreation == null)
        {
            _PMCreation = this;
            DontDestroyOnLoad(this);
        }
        else
        {
            Destroy(gameObject);
        }

        if (_PMCreation != null)
        {
            Debug.Log("PMCreation Successfully Made");
        }
        else
        {
            Debug.Log("PMCreation has Failed");
        }
    }
コード例 #7
0
ファイル: Level05.cs プロジェクト: Ir-sy/Boxing-Day
    void Start()
    {
        _PMCreation = PMCreation._PMCreation;
        gameUI      = GameUI._gameUI;
        player      = _PMCreation.player;

        playerHolder = new GameObject("PlayerHolder");

        SpawnAllPlayers();
        SetupRulesPanel();
        StartCoroutine(GameLoop());

        if (_PMCreation != null)
        {
            Debug.Log("PMCreation Found");
        }
        else
        {
            Debug.Log("PMCreation not Found");
        }

        if (gameUI != null)
        {
            Debug.Log("GameUI Found");
        }
        else
        {
            Debug.Log("GameUI not Found");
        }

        if (playerHolder != null)
        {
            Debug.Log("PlayerHolder Made Success");
        }
        else
        {
            Debug.Log("PlayerHolder Made Failed");
        }
    }