Esempio n. 1
0
    // Use this for initialization
    private void Start()
    {
        holding           = false;
        totalRotationZ    = 0.0f;
        pointerControl    = GameObject.Find("PointerRoot").GetComponent <PointerControl>();
        playerTeaCeremony = GameObject.Find("MainPlayer").GetComponent <PlayerTeaCeremony>();

        if (!Settings.start_allow_actions)
        {
            this.enabled = false;
        }
    }
Esempio n. 2
0
 void Awake()
 {
     if (Application.loadedLevelName != "MenuTest")
     {
         playerTeaCeremony            = GameObject.Find("MainPlayer").GetComponent <PlayerTeaCeremony>();
         playerTeaCeremony.dialogTree = this;
         pickup_object_script         = GameObject.Find("MainPlayer").GetComponent <PickupObject>();
         if (!Settings.start_allow_actions)
         {
             pickup_object_script.enabled = false;
         }
     }
 }
 void Awake()
 {
     if(Application.loadedLevelName != "MenuTest") {
         playerTeaCeremony = GameObject.Find("MainPlayer").GetComponent<PlayerTeaCeremony>();
         playerTeaCeremony.dialogTree = this;
         pickup_object_script = GameObject.Find("MainPlayer").GetComponent<PickupObject>();
         if(!Settings.start_allow_actions)
             pickup_object_script.enabled = false;
     }
 }
    // Use this for initialization
    private void Start()
    {
        holding = false;
        totalRotationZ = 0.0f;
        pointerControl = GameObject.Find("PointerRoot").GetComponent<PointerControl>();
        playerTeaCeremony = GameObject.Find("MainPlayer").GetComponent<PlayerTeaCeremony>();

        if(!Settings.start_allow_actions)
        {
            this.enabled = false;
        }
    }