コード例 #1
0
        public void InitialiseIsland(ScoreSystem scoreSystem)
        {
            BasePlatform platform = this.GetComponentInChildren <BasePlatform>();

            platform.InitialisePlatform(this);

            // Gets the score system without the singleton, to limit the chaining on
            this.scoreSystem = scoreSystem;
        }
コード例 #2
0
        /// <summary>
        /// Initialises island's inhabitants and transport system on Awake.
        /// </summary>
        public void InitialiseIsland(ScoreSystem scoreSystem)
        {
            // THIS MAY LATER NEED TO BE SEPERATELY CALLED FROM THE PLATFORM
            // As these are both seperate entities from eachother.

            BasePlatform platform = this.GetComponentInChildren <BasePlatform>();

            platform.InitialisePlatform(this);

            // Gets the score system without the singleton, to limit the chaining on
            this.scoreSystem = scoreSystem;
        }