package com.tuyoo.sdk;

import android.content.Intent;
import android.os.Bundle;

import com.tuyoo.sdk.sdk_inter_layer_unity.UnityInterface;

public class Activity extends ${0} {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        UnityInterface.onActivityCreate(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
        UnityInterface.onActivityResume(this);

    }

    @Override
    protected void onStart() {
        super.onStart();
        UnityInterface.onActivityStart(this);

    }

    @Override
    protected void onStop() {
        super.onStop();
        UnityInterface.onActivityStop(this);

    }

    @Override
    protected void onPause() {
        super.onPause();
        UnityInterface.onActivityPause(this);

    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        UnityInterface.onResult(this, requestCode, resultCode, data);
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        UnityInterface.onNewIntent(this, intent);
    }

}
