Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.EventSystems;
- public class trigger : EventTrigger
- {
- [SerializeField]
- Material c1;
- GameObject c;
- public bool entra= false;
- void Update()
- {
- if (entra) // this is the same as saying "if (rotateObject == true)"
- {
- print("entraaa");
- c.transform.localScale += Vector3(10,10,10);
- }
- else
- {
- print("esce");
- }
- }
- private Vector3 Vector3(double v1, int v2, int v3)
- {
- throw new NotImplementedException();
- }
- public override void OnPointerEnter(PointerEventData eventData){
- entra = true;
- }
- public override void OnPointerExit(PointerEventData eventData)
- {
- entra = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement