Untitled
Anonymous
plain_text
10/08/2021 5:02 PM
820 B
25
Indexable
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Collectible_speed : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
void Update()
{
transform.Rotate(10 * Time.deltaTime,110* Time.deltaTime,110* Time.deltaTime);
}
void OnTriggerEnter(Collider collision)
{
collision.gameObject.GetComponent<MovementController>().SpeedMovement+=100;
gameObject.SetActive(false);
Debug.Log("Zdobyłeś przyspieszenie");
}
}
Editor is loading...