void Start()
    {
        state       = gameObject.GetComponent <CharacterInteract_Scene_05>();
        response    = GetComponent <CharacterResponses_Scene_05>();
        responseNum = 0;

        radialMenuObj.controllerArrow.renderer.enabled  = false;
        radialMenuObj.radialBackground.renderer.enabled = false;
        radialMenuObj.Option1.renderer.enabled          = false;
        radialMenuObj.Option2.renderer.enabled          = false;
        radialMenuObj.Option3.renderer.enabled          = false;
        radialMenuObj.Option4.renderer.enabled          = false;
        radialMenuObj.Option5.renderer.enabled          = false;
        radialMenuObj.Option6.renderer.enabled          = false;
        radialMenuObj.Option7.renderer.enabled          = false;
        radialMenuObj.Option8.renderer.enabled          = false;
        radialMenuObj.Option9.renderer.enabled          = false;
    }
Esempio n. 2
0
    void Start()
    {
        state       = gameObject.GetComponent <CharacterInteract_Scene_05>();
        response    = GetComponent <CharacterResponses_Scene_05>();
        responseNum = 0;


        radialBackground = GameObject.Find("radial_background");
        controllerArrow  = GameObject.Find("radial_dial");
        Option1          = GameObject.Find("radial_1");
        Option2          = GameObject.Find("radial_2");
        Option3          = GameObject.Find("radial_3");
        Option4          = GameObject.Find("radial_4");
        Option5          = GameObject.Find("radial_5");
        Option6          = GameObject.Find("radial_6");
        Option7          = GameObject.Find("radial_7");
        Option8          = GameObject.Find("radial_8");
        Option9          = GameObject.Find("radial_9");

        off_1 = Resources.Load("radial_material_1", typeof(Material)) as Material;
        off_2 = Resources.Load("radial_material_2", typeof(Material)) as Material;
        off_3 = Resources.Load("radial_material_3", typeof(Material)) as Material;
        off_4 = Resources.Load("radial_material_4", typeof(Material)) as Material;
        off_5 = Resources.Load("radial_material_5", typeof(Material)) as Material;
        off_6 = Resources.Load("radial_material_6", typeof(Material)) as Material;
        off_7 = Resources.Load("radial_material_7", typeof(Material)) as Material;
        off_8 = Resources.Load("radial_material_8", typeof(Material)) as Material;
        off_9 = Resources.Load("radial_material_9", typeof(Material)) as Material;


        controllerArrow.renderer.enabled  = false;
        radialBackground.renderer.enabled = false;
        Option1.renderer.enabled          = false;
        Option2.renderer.enabled          = false;
        Option3.renderer.enabled          = false;
        Option4.renderer.enabled          = false;
        Option5.renderer.enabled          = false;
        Option6.renderer.enabled          = false;
        Option7.renderer.enabled          = false;
        Option8.renderer.enabled          = false;
        Option9.renderer.enabled          = false;
    }
 // Use this for initialization
 void Start()
 {
     state = gameObject.GetComponent <CharacterInteract_Scene_05>();
     anim  = GetComponent <Animator>();
 }
 // Use this for initialization
 void Start()
 {
     AiInteract = GameObject.Find("carl").GetComponent <CharacterInteract_Scene_05> ();
 }