void Awake() { boostSprite = GameObject.Find("Boost").GetComponent <SpriteRenderer>(); boostSprite.enabled = false; myRotator = GetComponent <ConstantRotation>(); starList = getStarList(); }
// Use this for initialization void Start() { if (thief == null) { thief = GameObject.FindGameObjectWithTag("Player").transform; } rotater = gameObject.AddComponent <ConstantRotation>(); rotater.parentGuard = this; StartCoroutine(RefreshPath()); }
public void AddPickupStuff() { PickUpSignPrefab = Resources.Load <Transform>("WeaponPickupSign"); PickUpSignPrefab.CreatePool(); PickUpSign = PickUpSignPrefab.Spawn(transform.position); PickUpSign.localRotation = Quaternion.Euler(90, 0, 0); constR = gameObject.AddComponent <ConstantRotation>(); constR.RotationsPerMinuteY = 15; m_Collider = gameObject.AddComponent <SphereCollider>(); m_Collider.isTrigger = true; m_Collider.radius = 1.7f; rb = gameObject.AddComponent <Rigidbody>(); if (rb) { rb.isKinematic = true; rb.useGravity = false; } TimeOfStart = Time.time; }
// Use this for initialization void Start() { rotY = this.GetComponent<ConstantRotation>(); }
// Use this for initialization void Start() { rotY = this.GetComponent <ConstantRotation>(); }
private void Start() { rotationScript = GetComponent <ConstantRotation>(); }
void Awake() { boostImage.enabled = false; myRotator = GetComponent <ConstantRotation>(); starList = getStarList(); }