예제 #1
0
 /// <summary>
 /// Unity Awake method.
 /// </summary>
 private void Awake()
 {
     yamiPlayer = GetComponent <YamiPlayer>();
     if (yamiPlayer == null)
     {
         Debug.LogError("No Player");
     }
     staticLightBallText            = lightBallText;
     lightsOutController.LightsOut += LightsOutHandler;
 }
    /// <summary>
    /// Unity Awake method.
    /// </summary>
    private void Awake()
    {
        spriteRenderer = GetComponent <SpriteRenderer>();
        if (spriteRenderer == null)
        {
            Debug.LogError("No Sprite Renderer");
        }

        yamiPlayer = GetComponent <YamiPlayer>();
        if (yamiPlayer == null)
        {
            Debug.LogError("No Player");
        }
    }