Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Cannot get my "Cube" to scale bigger while pressing a key.

$
0
0
So this should we very simple. I am very new to Unity and I am trying to get my cube to move and also be able to change it scale when pressing my key P (Maybe also descale). (The movement is working).

Here is my script:
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CubeScript : MonoBehaviour {
  5.  
  6.     public float rotationSpeed;
  7.     private Vector3 direction;
  8.     // Use this for initialization
  9.     void Start () {
  10.  
  11.     }
  12.  
  13.     // Update is called once per frame...
Cannot get my "Cube" to scale bigger while pressing a key.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>