20 lines
458 B
C#
20 lines
458 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class DebugSmartphoneActiveScale : MonoBehaviour
|
|
{
|
|
public GameObject smartphone;
|
|
|
|
void Start()
|
|
{
|
|
StartCoroutine(DelayedDebugSmartphoneActiveScale());
|
|
}
|
|
|
|
IEnumerator DelayedDebugSmartphoneActiveScale()
|
|
{
|
|
yield return new WaitForSeconds(1f); // wait 1 second
|
|
smartphone.SetActive(true);
|
|
smartphone.transform.localScale = new Vector3(1, 1, 1);
|
|
}
|
|
}
|