Skip to content

Instantly share code, notes, and snippets.

@kazuooooo
Created January 21, 2015 16:10
Show Gist options
  • Save kazuooooo/3fbcea699fa3b18ea280 to your computer and use it in GitHub Desktop.
Save kazuooooo/3fbcea699fa3b18ea280 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class cubeScript : MonoBehaviour
{
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
}
public void bigsize ()
{
this.transform.localScale = new Vector3 (3.0f, 3.0f, 3.0f);
}
}
public class Test
{
public void makeBigMyself(GameObject obj){
obj.transform.localScale = new Vector3(3.0f,3.0f,3.0f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment