Exemplo n.º 1
0
 private void Awake()
 {
     CamRatio.SetupCamera(this.m_modelCamera, 0f);
     this.modelRotate = base.GetComponent <ModelRotate>();
     this.mgs         = new object[]
     {
         ClientV2C.sacriviewChangeHero,
         ClientV2C.propviewChangeSkin,
         ClientV2C.propviewChangeToggle
     };
     this.Initialize();
     this.coroutine = new CoroutineManager();
 }
Exemplo n.º 2
0
    public static void AddDrag(GameObject UIObj, GameObject modelObj)
    {
        ModelRotate mro = modelObj.AddComponent <ModelRotate>();

        EventTrigger trigger;

        trigger = UIObj.GetComponent <EventTrigger>();
        if (trigger)
        {
            trigger.triggers.Clear();
        }
        else
        {
            trigger = UIObj.AddComponent <EventTrigger>();
        }

        trigger.triggers.Add(GetEvent(EventTriggerType.Drag, mro.OnDrag));
    }
Exemplo n.º 3
0
	void Awake()
	{
		rotate = GetComponent<ModelRotate>();
		FindFruits();
		ToggleFruits(false);
	}