Inheritance: MonoBehaviour
コード例 #1
0
ファイル: SkyTime.cs プロジェクト: zabiksandbox/Skydome
 // Use this for initialization
 void Start()
 {
     //Length of an in-game hour eg. 1 = 2.5 2 = 5 (in seconds)
     hourLength = (dayLengthInMinutes * 60) / 24;
     //Number of degress roated per millisecond to get 360 in hourLength*24
     skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
 }
コード例 #2
0
ファイル: SkyTime.cs プロジェクト: cupsster/Skydome
    void OnEnable()
    {
	    skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
	}
コード例 #3
0
ファイル: SkyTime.cs プロジェクト: cupsster/Skydome
	// Use this for initialization
	void Start () {
	//Length of an in-game hour eg. 1 = 2.5 2 = 5 (in seconds)
	hourLength = (dayLengthInMinutes * 60) / 24;
	//Number of degress roated per millisecond to get 360 in hourLength*24
	skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
	}
コード例 #4
0
ファイル: Sun.cs プロジェクト: aritosuits/mess3d
 void OnEnable()
 {
     skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
 }
コード例 #5
0
ファイル: Sun.cs プロジェクト: aritosuits/mess3d
 // Use this for initialization
 void Start()
 {
     skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
 }
コード例 #6
0
ファイル: PlayerVitals.cs プロジェクト: sethnel99/HungerGame
    // Use this for initialization
    void Start()
    {
        GameTime = (skydomeScript2) GameObject.Find("Skybox Controller").GetComponent("skydomeScript2");

        inventory = GameObject.FindGameObjectWithTag("Player").GetComponent<Inventory>();
        equippedItemScript = GameObject.Find("EquippedItem").GetComponent<EquippedItemManager>();
        textHints = GameObject.Find("TextHintGUI");

        CurrentTemp = 91.0f;
        CurrentBaseTemp = 91.0f;
    }
コード例 #7
0
 // Use this for initialization
 void Start()
 {
     skydomeScript = mainManager.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
 }
コード例 #8
0
 // Use this for initialization
 void Start()
 {
     skydomeScript = mainManager.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
 }
コード例 #9
0
    // Use this for initialization
    void Start()
    {
        respawnTime = UnityEngine.Random.Range(45, 60);
        interactionManager = GameObject.FindGameObjectWithTag("Player").GetComponent<InteractionManager>();
        timeScript = GameObject.Find("Skybox Controller").GetComponent<skydomeScript2>();

        isSpawned = true;
        nodeToCreate = nodeType;
    }
コード例 #10
0
ファイル: Sun.cs プロジェクト: jcutrell/Skydome
 // Use this for initialization
 void Start()
 {
     skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2;
 }
コード例 #11
0
ファイル: Console.cs プロジェクト: KaBKa/TestLab
    void Update()
    {
        if(world == null)world=GameObject.Find("World").GetComponent("World") as World;
        if(skyDome == null)skyDome=GameObject.Find("Skydome").GetComponent("skydomeScript2") as skydomeScript2;
        //if(charmotor == null)charmotor=GameObject.Find("Player").GetComponent("CharacterMotor") as CharacterMotor;

        if (Input.GetKeyDown(toggleKey)) {
            show = !show;
        }
        if(Input.GetKeyDown(KeyCode.Return)){
            if(GUI.GetNameOfFocusedControl() == "Command"){
                HandleLog(consoleInput, "no bitch", LogType.Assert);
            }else{
                Debug.Log(GUI.GetNameOfFocusedControl());
            }
        }
    }