コード例 #1
0
    void Awake()
    {
        RollTheDice = GameObject.Find("Dice").GetComponent<RollDice>();
        TheBaseStar = this.gameObject.GetComponent<BaseStar>();
        TheBaseStellarType = this.gameObject.GetComponent<BaseStellarType>();
        TheBaseSpectralClass = this.gameObject.GetComponent<BaseSpectralClass>();

        PlentifulResources = new List<string>();
        ScarceResources = new List<string>();
    }
コード例 #2
0
ファイル: ClassT.cs プロジェクト: JasonSlingsCode/Mindjammer
 void Awake()
 {
     this.gameObject.GetComponent<SgtCustomStarfield>().Stars [0].Color = ClassTcolor;
     TheBaseStar = this.gameObject.GetComponent<BaseStar>();
     TheBaseSpectralClass = this.gameObject.GetComponent<BaseSpectralClass>();
 }